package com.bdzl.admin.service.data.impl;

import com.bdzl.pub.vo.data.VehModelVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bdzl.admin.dao.data.VehModelDao;
import com.bdzl.pub.entity.data.VehModelDO;
import com.bdzl.admin.service.data.VehModelService;



@Service
public class VehModelServiceImpl implements VehModelService {
	@Autowired
	private VehModelDao vehModelDao;
	
	@Override
	public VehModelDO get(Integer modelId){
		return vehModelDao.get(modelId);
	}
	
	@Override
	public List<VehModelDO> list(Map<String, Object> map){
		return vehModelDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return vehModelDao.count(map);
	}
	
	@Override
	public int save(VehModelDO vehModel){
		return vehModelDao.save(vehModel);
	}
	
	@Override
	public int update(VehModelDO vehModel){
		return vehModelDao.update(vehModel);
	}
	
	@Override
	public int remove(Integer modelId){
		return vehModelDao.remove(modelId);
	}
	
	@Override
	public int batchRemove(Integer[] modelIds){
		return vehModelDao.batchRemove(modelIds);
	}


	/**
	 * 获取 车系 车系表所关联的外键 信息
	 * @param map
	 * @return
	 */
	@Override
	public List<VehModelVO> vehAll(Map<String, Object> map){
		return vehModelDao.vehAll(map);
	}

	@Override
	public int vehAllcount(Map<String, Object> map){
		return vehModelDao.count(map);
	}
}
